import service from '@/utils/request'

const CommunityApi = {
  // ----------------小区管理--------------
  listCommunity:function(data){
    return service.get('community/page', {params:data})
  },
  addCommunity:function(data){
    return service.post('community', data)
  },
  editCommunity:function(data){
    return service.put('community', data)
  },
  deleteCommunity:function(data){
    return service.put('community/delete', data)
  },
  getCommunityInfo:function(data){
    return service.get('community', {params:data})
  },
  listIdName(data){
    return service.get('community/listIdName',{ params: data });
  },

}

export default CommunityApi
